package com.core;

import java.util.Collection;
import java.util.Iterator;

public class UserTestRequest extends UserRequest {

	private String un;
	
	private Collection<String> r;
	
	public UserTestRequest(String username, Collection<String> requests){
		this.un = username;
		this.r = requests;
	}
	
	public String getUsername() {
		return un;
	}

	public String toString() {
		return un;
	}

	public void substractRequest(UserRequest ur) {
		Iterator<String> itr = ur.getRequests().iterator();
		while (itr.hasNext()) {
			String s = itr.next();
			r.remove(s);
		}
	}

	public Collection<String> getRequests() {
		return r;
	}

	public boolean areRequestsAcomplished() {
		return false;
	}

}
